package com.example.fragmentanimationdemo.fragment.views;

import com.example.fragmentanimationdemo.R;

import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.Toast;

public  class PlaceholderFragment extends Fragment {
	


	public PlaceholderFragment() {
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View rootView = inflater.inflate(R.layout.fragment_main, container,
				false);
		
		Button showa = (Button)rootView.findViewById(R.id.showfa);
		Button showb = (Button)rootView.findViewById(R.id.showfb);
		
		
		showa.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View v) {
				
				Toast.makeText(v.getContext(), "clicked", Toast.LENGTH_SHORT).show();
				
			}
			
		});
		
		showb.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View v) {
				
				Toast.makeText(v.getContext(), "clicked", Toast.LENGTH_SHORT).show();
				
			}
			
		});
		
		return rootView;
	}
}
